<?php echo $this->doctype();?>
<html>
<head>
<!--	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">-->
	<?php
		echo $this->headMeta();
		echo $this->headTitle();

		$ip[] = '192.168.0.8';
		
		$prot = 'http://';
		$public = ':81/sigta_pweb/public/';
		
		foreach($ip as $key => $value){
			$pos = strpos($_SERVER["SERVER_NAME"], $value);
			if($pos !== false){
				$path = $prot.$value.$public;
				break;
			}
		}
		
		$pathreport = 'http://192.168.0.8:8080/reportesbuild/index.jsp?';
		
		$url = new Zend_Session_Namespace('path');
		$url->data = $path;
		$url->reportes = $pathreport;
		$publicfolder = $path; //$this->baseUrl();
	?>	
	<script type='text/javascript'> 
		var urljs = "<?php echo $path; ?>";
		var urlreportjs = "<?php echo $pathreport; ?>";
		var cargando = '<table width="100%" height="100%" border="0" cellpadding="0"  cellspacing="0"><tr valign="middle"><td align="center"><img src="<?php echo $path; ?>images/cargando.gif" />PROCESANDO...</td></tr></table>';
	</script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/jquery-ui-1.8.14.custom.min.js"></script>
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>css/blitzer/jquery-ui-1.8.17.custom.css">
	<script type="text/javascript">
	$.datepicker.regional['es'] = {
			closeText: 'Cerrar',
			prevText: '&#x3c;Ant',
			nextText: 'Sig&#x3e;',
			currentText: 'Hoy',
			monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
			'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
			monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
			'Jul','Ago','Sep','Oct','Nov','Dic'],
			dayNames: ['Domingo','Lunes','Martes','Mi&eacute;rcoles','Jueves','Viernes','S&aacute;bado'],
			dayNamesShort: ['Dom','Lun','Mar','Mi&eacute;','Juv','Vie','S&aacute;b'],
			dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','S&aacute;'],
			weekHeader: 'Sm',
			dateFormat: 'dd/mm/yy',
			firstDay: 1,
			isRTL: false,
			showMonthAfterYear: false,
			yearSuffix: ''};
		$.datepicker.setDefaults($.datepicker.regional['es']);	
	</script>
	
	
	
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>css/mainstyle.css">
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>css/pagination.css">
	
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>css/menu.css">
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>css/style_sliding.css">
		
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/js_jquery.pagination.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/js_logeo.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/menu.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/general_js.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/admtribut_prediosxvia.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/admtribut_listasaldos.js"></script>
		
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/sistemas_permisosweb.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/sistemas_objetosweb.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tesoreria_cierrecajagen.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tesoreria_servcontri.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tesoreria_ingresoxpartida.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tesoreria_ingresoxpartidaxarea.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tesoreria_tipoingreso.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/tramitedoc_reportes.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/archcen_ingresoarchxarea.js"></script>
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>/js/admtribut_cartas.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/js_generarexpediente.js"></script>
    <script type="text/javascript" src="<?php echo $publicfolder;?>js/js_contribuyente.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/js_buscar.js"></script>
	
	
	
	
	
	
	<script type="text/javascript" src="<?php echo $publicfolder;?>js/licencias_anuncioyprop.js"></script>

    <script type="text/javascript" src="<?php echo $publicfolder;?>js/desarrollourbano_certnumrec.js"></script>
    
    <script type="text/javascript" src="<?php echo $publicfolder;?>js/sistemas_cambiohost.js"></script>
			
    <!-- Miguel -->
    <script type="text/javascript" src="<?php echo $publicfolder;?>js/js_busqpers.js"></script>
    <script type="text/javascript" src="<?php echo $publicfolder;?>js/js_validaciones.js"></script>
    <script type="text/javascript" src="<?php echo $publicfolder;?>js/js_coactivo.js"></script>
	   
	<link rel="stylesheet" type="text/css" href="<?php echo $publicfolder;?>ext_4.0.7/resources/css/ext-all.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $publicfolder;?>ext_4.0.7/examples/shared/example.css" />
	<script type="text/javascript" src="<?php echo $publicfolder;?>ext_4.0.7/bootstrap.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>ext_4.0.7/examples/shared/examples.js"></script>
	<script type="text/javascript">
		Ext.require([
             'Ext.grid.*',
             'Ext.data.*',
             'Ext.dd.*',
             'Ext.tree.*',
             'Ext.tip.*',
             'Ext.window.MessageBox'
         ]);
	</script>
	<!-- Miguel -->
	
	<!-- LightBox -->
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>lightbox/themes/default/jquery.lightbox.css">
	<link type="text/css" rel="stylesheet" href="<?php echo $publicfolder;?>lightbox/themes/default/jquery.lightbox2.css">
	<script type="text/javascript" src="<?php echo $publicfolder;?>lightbox/jquery.lightbox.js"></script>
	<script type="text/javascript" src="<?php echo $publicfolder;?>lightbox/jquery.lightbox2.js"></script>
	<script type="text/javascript">$(document).ready(function(){$('.lightbox').lightbox();});</script>
    <script type="text/javascript">$(document).ready(function(){$('.lightbox2').lightbox2();});</script>
	
	
	
</head>

<body >
<table border="0" id="maincontent">
	<tr>
		<td colspan="2" id="headlayout" align="right" valign="bottom" height="60px">
			<center>
				<span>
					<strong>Municipalidad Distrital de San Martin de Porres</strong>
				</span>
			</center>
			<br/>
			<span style="padding: 0px 50px 0px 0px">Sigta - Web</span>
		</td>
	</tr>
	<tr>
		<td width="150px" id="middleleftlayout" valign="top">
			
			<?php
				echo $this->render('_leftmenu.phtml'); 
			?>
			
		</td>
		<td id="contentlayout" width="100%" height="100%">
			<div style="border:0px solid black;width:100%;height:100%;">

<!-- Content Here -->
			<?php 
			//echo $this->action('cierrecajagen', 'tesoreria', 'external');
			echo $this->layout()->content;
				
//						if(Zend_Auth::getInstance()->hasIdentity()){
//							$dcodmenu = new Zend_Session_Namespace('codmenu');
//							$codmenu = $dcodmenu->data;
//							
//							$didusuario = new Zend_Session_Namespace('idusuario');
//							$idusuario = $didusuario->data;
//							
//							$cn = new Model_Datos();
//							$parametros[] = array('@ciduser', $idusuario);
//							$parametros[] = array('@codmenu', $codmenu);
//							
//							$comp = $cn->ejecutasql('bdaudit.dbo.pxpermisosweb_comp', $parametros);
//						
//							$cont = '<script language=\'javascript\'>';
//							$cont .= '$("input").hide();';
//							
//							for ($i = 0; $i < count($comp); $i++){
//								$cont .= '$("#'.$comp[$i][1].'").show();';
//							}
//							
//							$cont .= '</script>';
//							echo $cont;
//						}

			?>
			
			</div>
		</td>
	</tr>
</table>

<div style="visibility:hidden">
	<a href="http://apycom.com/">Apycom jQuery Menus</a>
</div>
<form name="paginationoptions">
	<input type="hidden" value="20" name="items_per_page" id="items_per_page" /> 
	<input type="hidden" value="5" name="num_display_entries" id="num_display_entries" class="numeric" /> 
	<input type="hidden" value="1" name="num_edge_entries" id="num_edge_entries" class="numeric" /> 
	<input type="hidden" value="Anterior" name="prev_text" id="prev_text" /> 
	<input type="hidden" value="Siguiente" name="next_text" id="next_text" />
</form>

</body>
</html>